package com.ram.service.impl;

import com.ram.mapper.RepairTypeMapper;
import com.ram.pojo.RepairType;
import com.ram.service.RepairTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class RepairTypeServiceImpl implements RepairTypeService {
    @Autowired
    private RepairTypeMapper mapper;
    @Override
    public List<RepairType> list() { return mapper.list(); }
    @Override
    public RepairType getById(Integer id) { return mapper.getById(id); }
    @Override
    public void add(RepairType type) { mapper.insert(type); }
    @Override
    public void update(RepairType type) { mapper.update(type); }
    @Override
    public void deleteById(Integer id) { mapper.deleteById(id); }
} 